package com.ruoyi.resume.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resume.mapper.CvProjectTypeMapper;
import com.ruoyi.resume.domain.CvProjectType;
import com.ruoyi.resume.service.ICvProjectTypeService;

/**
 * 项目类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
@Service
public class CvProjectTypeServiceImpl implements ICvProjectTypeService 
{
    @Autowired
    private CvProjectTypeMapper cvProjectTypeMapper;

    /**
     * 查询项目类型
     * 
     * @param id 项目类型主键
     * @return 项目类型
     */
    @Override
    public CvProjectType selectCvProjectTypeById(Long id)
    {
        return cvProjectTypeMapper.selectCvProjectTypeById(id);
    }

    /**
     * 查询项目类型列表
     * 
     * @param cvProjectType 项目类型
     * @return 项目类型
     */
    @Override
    public List<CvProjectType> selectCvProjectTypeList(CvProjectType cvProjectType)
    {
        return cvProjectTypeMapper.selectCvProjectTypeList(cvProjectType);
    }

    /**
     * 新增项目类型
     * 
     * @param cvProjectType 项目类型
     * @return 结果
     */
    @Override
    public int insertCvProjectType(CvProjectType cvProjectType)
    {
        return cvProjectTypeMapper.insertCvProjectType(cvProjectType);
    }

    /**
     * 修改项目类型
     * 
     * @param cvProjectType 项目类型
     * @return 结果
     */
    @Override
    public int updateCvProjectType(CvProjectType cvProjectType)
    {
        return cvProjectTypeMapper.updateCvProjectType(cvProjectType);
    }

    /**
     * 批量删除项目类型
     * 
     * @param ids 需要删除的项目类型主键
     * @return 结果
     */
    @Override
    public int deleteCvProjectTypeByIds(Long[] ids)
    {
        return cvProjectTypeMapper.deleteCvProjectTypeByIds(ids);
    }

    /**
     * 删除项目类型信息
     * 
     * @param id 项目类型主键
     * @return 结果
     */
    @Override
    public int deleteCvProjectTypeById(Long id)
    {
        return cvProjectTypeMapper.deleteCvProjectTypeById(id);
    }
}
